﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace Adams.Web.Data.Security
{
    public static class PasswordReset
    {
        public static void ResetPassword(string email, string passwordHash)
        {
            DB.Run(@"
UPDATE Membership.Members SET 
PasswordHash = @PasswordHash
WHERE Email = @Email
", CommandType.Text,
    DB.CreateParameter("@Email", email),
    DB.CreateParameter("@PasswordHash", passwordHash));
        }
    }
}
